<?php 
include "includes/session.php";
include "includes/comunes.php";
require_once("includes/paginator.class.php");

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta HTTP-EQUIV="refresh" CONTENT="300"/>
<title>Sistema de Registro de Atencion</title>

<link href="estilos.css" rel="stylesheet" type="text/css" />

<!--libreria jquery central-->

<script src="jquery-ui/js/jquery-1.9.1.js"></script>
<!--fin libreria central-->

<!--Librerias para el combo-->
<script language="JavaScript" type="text/javascript" src="combos/jquery.chainedSelects.js"></script>
<!--fin libreria-->

<!--librerias ui-->
<link href="jquery-ui/css/ui-lightness/jquery-ui-1.10.2.custom.css" rel="stylesheet"/>
<script src="jquery-ui/js/jquery-ui-1.10.2.custom.js"></script>
<!--fin libreria-->
<!--libreria flexigrid-->
<link rel="stylesheet" type="text/css" href="jquery-ui/css/ui-flexigrid/flexigrid.css">
    <script type="text/javascript" src="jquery-ui/js/flexigrid.js"></script>
<!--fin libreria-->
<!--VENTANA MODAL -->
<link href="modal/styles/modal-window.css" type="text/css" rel="stylesheet" /> 
 
		<script type="text/javascript" language="javascript" src="modal/scripts/modal-window.min.js"></script>  


<script language="JavaScript" type="text/javascript">
$(function()
{

<?php  for ($a=1;$a<=20;$a++):?>
		
		$( "#codigo<?php echo $a?>" ).autocomplete({
			source: "autoArticulos.php"
		});
              
<?php endfor?>

	  $( "#menu" ).menu({position: {at: "left bottom"}});

});
</script>



</head>

<body>

<div class="container">
<?php include "includes/head.php"?>
   <div class="content">
       <div class="tituloprincipal"><img src="img/etiquetas.jpg" width="25" height="25" border="0"/> Impresion de Etiquetas
           <?php include 'includes/submenu.php';?>  
           </div>
       
       <div class="contenedorpedido">
       <form id="altapedido" name="altapedido" method="POST" action="imprimirA4.php">
        
      
           <fieldset>
             <legend><b>Cargar Codigos</b></legend>
             
             </br>

             <table >
			 <tr>
			 <td class="textotablamenuform" style="width:50%;">Codigo</td>
			 <td class="textotablamenuform">Cant. de Art.</td>
			 <td class="textotablamenuform">Fec. Rec.</td>
             <td class="textotablamenuform">Cant. de Eti.</td>
			 </tr>
  
               <tbody>

                <?php
                
                for($i=1;$i<=20;$i++):?>
                  <tr id="fila<?php echo $i?>">
                     
                     <td ><input  type="text" style="width:90%;" name="codigo<?php echo $i?>" id="codigo<?php echo $i?>"  value="" class="campo_form"/></td>
					<td ><input  type="number" step="0.01" name="cantart<?php echo $i?>" id="cantart<?php echo $i?>"  style="width:90%;" value="" class="campo_form"/></td> 
					<td ><input  type="text" name="fecha<?php echo $i?>" id="fecha<?php echo $i?>"  value="<?php echo date("d/m/Y"); ?>" style="width:90%;" class="campo_form"/></td>					
					<td ><input  type="number" name="cantidad<?php echo $i?>" id="cantidad<?php echo $i?>"  style="width:90%;"value="" class="campo_form"/></td>
					
                     
                  </tr>
                 <?php
                 endfor
                
                 ?>

                  
                </tbody>

             </table>
             

        </fieldset>
           <fieldset>
             <legend><b>Seleccionar Formato de Impresion</b></legend>
             <table>
              
                   <tr>
                  
                         <td class="textotablamenuform" style="text-align: right;" > <input type="submit" name="A4" value="Etiquetas A4(Hoja Completa)"  class="boton_form"/> </td>
                         <td class="textotablamenuform" style="text-align: right;" > <input name="A5" id="submit" type="submit" value="Etiquetas A5(2 por Hoja)" class="boton_form"/> </td>
						 <td class="textotablamenuform" style="text-align: right;" > <input name="A6" id="submit" type="submit" value="Etiquetas A6(4 por Hoja)" class="boton_form"/> </td>
						</tr>
						<tr>
                  
                         <td class="textotablamenuform" style="text-align: right;" > <input type="submit" name="10" value="Etiquetas 10cm x 5cm"  class="boton_form"/> </td>
                         <td class="textotablamenuform" style="text-align: right;" > <input name="80" id="submit" type="submit" value="Etiquetas 10cm x 8cm" class="boton_form"/> </td>
						 <td class="textotablamenuform" style="text-align: right;" >  </td>
						</tr>
						<!--<tr>
						 <td class="textotablamenuform" style="text-align: right;" > </td>
					
						 <td class="textotablamenuform" style="text-align: right;" > <input name="10x5" id="submit" type="submit" value="Etiquetas 10x5" class="boton_form"/> </td>
						<td class="textotablamenuform" style="text-align: right;" >  <input name="10x8" id="submit" type="submit" value="Etiquetas 10x8" class="boton_form"/> </td>
                    
                 </tr>-->
             </table>
        </fieldset>
		 </form>
       </div>
 
       <div class="clear"></div>
   <br>
   </div>
  <?php include "includes/pie.php"?>
  
</div>


</body>
</html>
